<? include ("../init.php") ?>
<? include ("../header.php") ?>
<? include ("../menu.php") ?>
<? include ("submenu.php") ?>
<?php

  $pid = $_GET['pid'];

  $sql = "SELECT * FROM package WHERE pid = '".$pid."'";
  $line = $db->queryUniqueObject($sql);
?>
<div id = "body">

<h1><?_l('edit')?> <?_l('package')?></h1>
<div class = "clear"></div>

<form method="post" action="update.php" class = "form">

  <input type = "hidden" name = "pid" value = "<?=$pid?>">

  <div class = "field"><label><?_l('package')?></label><input type = "text" name = "package" class = "input size2" value = "<?=$line->package?>"></div>
  <div class = "field"><label><?_l('price')?></label><input type = "text" name = "price" class = "input size2" value = "<?=$line->price?>"></div>
  <div class = "field"><label><?_l('detail')?></label><input type = "text" name = "detail" value = "<?=$line->detail?>" class = "input size2"></div>
  <br/>
  <div class = "field"><label></label>
    <input type="submit" name="save" value = "<?_l('update')?>" class = "btn" />
    <input onclick = "javascript:history.back(1)" type = "button" value="<?_l('cancel')?>" class = "btn" />
  </div>
</form>

</div>


<style>
  .form label {
    width:80px;
  }
</style>

<? include ("../footer.php") ?>